find the perimeter of the triangle